package com.atguigu.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-cmn")
public interface DictFeignClient {

    //根据省市区编号查询对应的文字
    @GetMapping("/admin/cmn/getNameByValue/{value}")
    public String getNameByValue(@PathVariable("value") String value);

    //根据医院编号和dict_code查询医院等级信息
    @GetMapping("/admin/cmn/getNameByValue/{dictCode}/{value}")
    public String getNameByDictCodeAndValue(@PathVariable("dictCode") String dictCode,@PathVariable("value") String value);


}
